import request from '@/utils/request'

//查询
export function findPageList(data) {
    return request({
      url: '/attendance/rules/findPageList',
      method: 'post',
      data: data
    })
}

//新增
export function addRules(data) {
    return request({
      url: '/attendance/rules/add',
      method: 'post',
      data: data
    })
}

//更新
export function updateRules(data) {
    return request({
      url: '/attendance/rules/update',
      method: 'post',
      data: data
    })
}

//更新
export function deleteRules(id) {
  return request({
    url: '/attendance/rules/delete/' + id,
    method: 'delete',
  })
}

//更新
export function findAttendanceRulesById(id) {
  return request({
    url: '/attendance/rules/findAttendanceRulesById/' + id,
    method: 'get',
  })
}